package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjCodeUserChangeLog;
import com.zb.vo.CodeUserChangeCountVo;
import com.zb.vo.CodeUserChangeLogListVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 编码用户变更记录表 Mapper 接口
 * </p>
 *
 * @author WEN
 * @since 2023-09-04
 */
@Repository
public interface ZjCodeUserChangeLogMapper extends BaseMapper<ZjCodeUserChangeLog> {

    /**
     * 根据编码ID获取变更次数
     * @param codeId 编码ID
     * @return
     */
    List<CodeUserChangeCountVo> getChangeCountByCodeId(@Param("codeId") Long codeId);

}
